package com.wdz.controller;

import com.wdz.article.service.IArticleService;
import com.wdz.http.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AdminController {

    @Autowired
    private IArticleService iArticleService;
    @GetMapping("/test")
    public Response test(){return Response.success(iArticleService.likeTitleCount("s"));}

    @GetMapping("/test2")
    public Response test2(){return Response.success(iArticleService.selectList(null));}
}
